﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using System.Linq;
using System.Text;
using Snowdreamist.ComponentModel.Composition.Navigation;
using Snowdreamist.Windows.Navigation;

namespace Snowdreamist.ComponentModel.MEF.Navigation
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class NavigationHandlerExportAttribute : ExportAttribute, INavigationHandlerMetadata
    {
        public NavigationHandlerExportAttribute(string name)
            : base(typeof(INavigationHandler))
        {
            this.Name = name;
        }

        public string Name { get; set; }
    }
}